package website.digitalocean.chapter18;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/16 11:12
 * @version: 1.0
 */
public class TvRemote {

    public static void main(String[] args) {
        TvContext tvContext = new TvContext();

        TvStartState tvStartState = new TvStartState();
        TvOffState tvOffState = new TvOffState();

        tvContext.setState(tvStartState);
        tvContext.doAction();

        tvContext.setState(tvOffState);
        tvContext.doAction();
    }
}
